<?php
class ReportFactory {
    
    /**
     * Get the instance of report.
     * 
     * @param String $reportName report name
     * 			The report class name must be exact as $reportName
     * @return report object
     * @throws HISFileLoaderException if class $reportName is not exist
     */
    public static function getReportInstance($reportName, $reportTitle) {
        $fileLoader = new HISFileLoader();
        $classpath = strtolower($reportName) . '/' . $reportName;
        $fileLoader->loadClass($classpath);

        return new $reportName($reportTitle);        
    }  
}